import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule} from '@angular/router';
import {TranslateLoader, TranslateModule} from '@ngx-translate/core';
import {HttpLoaderFactory} from '../../app.module';
import {HttpClient} from '@angular/common/http';
import {NgZorroAntdModule} from 'ng-zorro-antd';
import {FormsModule} from '@angular/forms';
import {ExamSystemComponent} from './exam-system.component';
import {ShortAnswerComponent} from './questions/short-answer.component';
import {ChoiceComponent} from './questions/choice.component';
import {FillInTheBlanksComponent} from './questions/fill-in-the-blanks.component';
@NgModule({
  imports: [
    CommonModule,
    TranslateModule.forChild({
      loader: {
        provide: TranslateLoader,
        useFactory: HttpLoaderFactory,
        deps: [HttpClient]
      }
    }),
    RouterModule.forChild([{
      path: '', component: ExamSystemComponent,
      children: [
      ]
    }]),
    NgZorroAntdModule,
    FormsModule
  ],
  declarations: [
    ExamSystemComponent,
    ShortAnswerComponent,
    ChoiceComponent,
    FillInTheBlanksComponent,
  ]
})
export class ExamSystemModule {
}
